<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Ogre_glTF: C:/YbalridSoftware/AnnwvynSDK64/Ogre_glTF/src/private_headers/Ogre_glTF_textureImporter.hpp Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
  $(document).ready(initResizable);
/* @license-end */</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Ogre_glTF
   </div>
   <div id="projectbrief">glTF import library for Ogre</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('_ogre__gl_t_f__texture_importer_8hpp_source.html','');});
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">Ogre_glTF_textureImporter.hpp</div>  </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="preprocessor">#pragma once</span></div><div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;</div><div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="preprocessor">#include &quot;tiny_gltf.h&quot;</span></div><div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="preprocessor">#include &lt;unordered_map&gt;</span></div><div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="preprocessor">#include &lt;OgreTexture.h&gt;</span></div><div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;</div><div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespace_ogre__gl_t_f.html">Ogre_glTF</a></div><div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;{</div><div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;</div><div class="line"><a name="l00011"></a><span class="lineno"><a class="line" href="class_ogre__gl_t_f_1_1texture_importer.html">   11</a></span>&#160;    <span class="keyword">class </span><a class="code" href="class_ogre__gl_t_f_1_1texture_importer.html">textureImporter</a></div><div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;    {</div><div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;        std::unordered_map&lt;int, Ogre::TexturePtr&gt; loadedTextures;</div><div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;</div><div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;        <span class="keyword">static</span> <span class="keywordtype">size_t</span> id;</div><div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;</div><div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;        tinygltf::Model&amp; model;</div><div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;</div><div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;        <span class="keywordtype">void</span> loadTexture(<span class="keyword">const</span> tinygltf::Texture&amp; texture);</div><div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;</div><div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;        <span class="keywordtype">bool</span> isHardwareGammaEnabled() <span class="keyword">const</span>;</div><div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;</div><div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;    <span class="keyword">public</span>:</div><div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;        <a class="code" href="class_ogre__gl_t_f_1_1texture_importer.html#adb7e5a712efa692efe8f1fe5ac6c3748">textureImporter</a>(tinygltf::Model&amp; input);</div><div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;</div><div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;        <span class="keywordtype">void</span> <a class="code" href="class_ogre__gl_t_f_1_1texture_importer.html#a647b3d6ddf7d512607d03178ce31f63c">loadTextures</a>();</div><div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;</div><div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;        Ogre::TexturePtr <a class="code" href="class_ogre__gl_t_f_1_1texture_importer.html#a85af2b1ab4eb724816dc8903da867852">getTexture</a>(<span class="keywordtype">int</span> glTFTextureSourceID);</div><div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;</div><div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;        Ogre::TexturePtr <a class="code" href="class_ogre__gl_t_f_1_1texture_importer.html#af3d16f304458fa4c688ed69d1ef35c5a">generateGreyScaleFromChannel</a>(<span class="keywordtype">int</span> gltfTextureSourceID, <span class="keywordtype">int</span> channel);</div><div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;</div><div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;        Ogre::TexturePtr <a class="code" href="class_ogre__gl_t_f_1_1texture_importer.html#a2ca2141a31ee86e9ad699ef43200eb4d">getNormalSNORM</a>(<span class="keywordtype">int</span> gltfTextureSourceID);</div><div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;    };</div><div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;}</div><div class="ttc" id="class_ogre__gl_t_f_1_1texture_importer_html_a85af2b1ab4eb724816dc8903da867852"><div class="ttname"><a href="class_ogre__gl_t_f_1_1texture_importer.html#a85af2b1ab4eb724816dc8903da867852">Ogre_glTF::textureImporter::getTexture</a></div><div class="ttdeci">Ogre::TexturePtr getTexture(int glTFTextureSourceID)</div><div class="ttdef"><b>Definition:</b> <a href="_ogre__gl_t_f__texture_importer_8cpp_source.html#l00113">Ogre_glTF_textureImporter.cpp:113</a></div></div>
<div class="ttc" id="class_ogre__gl_t_f_1_1texture_importer_html"><div class="ttname"><a href="class_ogre__gl_t_f_1_1texture_importer.html">Ogre_glTF::textureImporter</a></div><div class="ttdoc">Import textures described in glTF into Ogre. </div><div class="ttdef"><b>Definition:</b> <a href="_ogre__gl_t_f__texture_importer_8hpp_source.html#l00011">Ogre_glTF_textureImporter.hpp:11</a></div></div>
<div class="ttc" id="class_ogre__gl_t_f_1_1texture_importer_html_a2ca2141a31ee86e9ad699ef43200eb4d"><div class="ttname"><a href="class_ogre__gl_t_f_1_1texture_importer.html#a2ca2141a31ee86e9ad699ef43200eb4d">Ogre_glTF::textureImporter::getNormalSNORM</a></div><div class="ttdeci">Ogre::TexturePtr getNormalSNORM(int gltfTextureSourceID)</div><div class="ttdef"><b>Definition:</b> <a href="_ogre__gl_t_f__texture_importer_8cpp_source.html#l00192">Ogre_glTF_textureImporter.cpp:192</a></div></div>
<div class="ttc" id="class_ogre__gl_t_f_1_1texture_importer_html_a647b3d6ddf7d512607d03178ce31f63c"><div class="ttname"><a href="class_ogre__gl_t_f_1_1texture_importer.html#a647b3d6ddf7d512607d03178ce31f63c">Ogre_glTF::textureImporter::loadTextures</a></div><div class="ttdeci">void loadTextures()</div><div class="ttdoc">Load all the textures in the model. </div><div class="ttdef"><b>Definition:</b> <a href="_ogre__gl_t_f__texture_importer_8cpp_source.html#l00108">Ogre_glTF_textureImporter.cpp:108</a></div></div>
<div class="ttc" id="class_ogre__gl_t_f_1_1texture_importer_html_adb7e5a712efa692efe8f1fe5ac6c3748"><div class="ttname"><a href="class_ogre__gl_t_f_1_1texture_importer.html#adb7e5a712efa692efe8f1fe5ac6c3748">Ogre_glTF::textureImporter::textureImporter</a></div><div class="ttdeci">textureImporter(tinygltf::Model &amp;input)</div><div class="ttdef"><b>Definition:</b> <a href="_ogre__gl_t_f__texture_importer_8cpp_source.html#l00106">Ogre_glTF_textureImporter.cpp:106</a></div></div>
<div class="ttc" id="namespace_ogre__gl_t_f_html"><div class="ttname"><a href="namespace_ogre__gl_t_f.html">Ogre_glTF</a></div><div class="ttdef"><b>Definition:</b> <a href="_ogre__gl_t_f__internal__utils_8hpp_source.html#l00005">Ogre_glTF_internal_utils.hpp:5</a></div></div>
<div class="ttc" id="class_ogre__gl_t_f_1_1texture_importer_html_af3d16f304458fa4c688ed69d1ef35c5a"><div class="ttname"><a href="class_ogre__gl_t_f_1_1texture_importer.html#af3d16f304458fa4c688ed69d1ef35c5a">Ogre_glTF::textureImporter::generateGreyScaleFromChannel</a></div><div class="ttdeci">Ogre::TexturePtr generateGreyScaleFromChannel(int gltfTextureSourceID, int channel)</div><div class="ttdef"><b>Definition:</b> <a href="_ogre__gl_t_f__texture_importer_8cpp_source.html#l00121">Ogre_glTF_textureImporter.cpp:121</a></div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_a91c8a98b5018f6a00270b1d102aba85.html">private_headers</a></li><li class="navelem"><b>Ogre_glTF_textureImporter.hpp</b></li>
    <li class="footer">Generated by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.14 </li>
  </ul>
</div>
</body>
</html>
